package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import java.util.Set;
import java.util.Set;
import com.itheima.pojo.Role;
import java.util.List;

public interface RoleService {
    List<Integer> findByUserId(int id);

    void deleteByRoleId(Integer RoleId);

    List<Role> findAll();

    List<Integer> findPermissionIdByRoleId(Integer roleId);

    void edit(Role role, Integer[] permissionIds);

    PageResult findPage(QueryPageBean queryPageBean);

    void add(Role role, Integer[] permissionIds);

    Role findRoleByRoleId(Integer roleId);

}
